Only in right angled triangles: the square of the hypotenuse is equal to the sum of the squares of the other two or three sides.
2-Dimensional application of Pythagoras' Theorem
[Img source: http://mathworld.wolfram.com]
3-Dimensional application of Pythagoras' Theorem
[Img Source: http://www.cosmosportal.org]